﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt;

    public class Map_ProjectSerialCode : EntityMapping<ProjectSerialCode>
    {
        public Map_ProjectSerialCode()
        {
            Property(x => x.CodeDescribe, map =>
            {
                map.Length(500000000);
            });

            Property(x => x.SerialCode, map =>
            {
                map.Length(10);
            });

            Property(x => x.SerialType, map =>
            {
                map.Length(20);
            });
        }
    }
}
